﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace TransformeXmlEnCsv
{
	public class Invention
	{
		/// <summary>
		/// Id du Blueprint
		/// </summary>
		public int IdBlueprint { get; set; }

		/// <summary>
		/// Id du Blueprint inventable
		/// </summary>
		public int InventTypeId { get; set; }


		public Invention(int numBlueprint, int elementInvention)
		{
			IdBlueprint = numBlueprint;
			InventTypeId = elementInvention;
		}

		public override string ToString()
		{
			const char VIRGULE = ',';
			StringBuilder sb = new StringBuilder();
			sb.Append(IdBlueprint);
			sb.Append(VIRGULE);
			sb.Append(InventTypeId);
			sb.Append('|');

			return sb.ToString();
		}

	}
}
